home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 July: Mac OS SDK / Dev.CD Jul 00 SDK2.toast / Development Kits / Hardware / Mac OS USB DDK / Mac OS USB DDK 1.4.1 / Examples / USBSampleStorageDriver / UnitTableDriver / UnitTableReadWriteSupport.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-04-25  |  934 b   |  34 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        UnitTableReadWriteSupport.h
  3.  
  4.     Contains:    Handles read and write requests.  Also handles all filesystem
  5.                 to device block conversions.
  6.  
  7.     Version:    1.0
  8.  
  9.     Copyright:    © 1999 by Apple Computer, Inc., all rights reserved.
  10.  
  11. */
  12.  
  13. #pragma once
  14.  
  15. #include "UnitTableDeviceAccess.h"
  16.  
  17. typedef CALLBACK_API_C( void , ReadWriteCompletionProcPtr )( UInt32 userData, OSStatus status );
  18.  
  19. extern OSStatus DoReadWriteCommand(    UInt32                         userData, 
  20.                                     IOParamPtr                    iopb,
  21.                                     UInt16                        driveNum,
  22.                                     Boolean                        doWrite, 
  23.                                     ReadWriteCompletionProcPtr    callback);
  24.  
  25. extern OSStatus DoReadWritePhysicalBlocks ( UInt32                    userData,
  26.                                     UInt32                            startBlock,
  27.                                     UInt32                            blockCount,
  28.                                     UInt32                            blockSize,
  29.                                     Boolean                            convertToSystemBlocks,
  30.                                     Ptr                                buffer,
  31.                                     UInt32                            byteCount,
  32.                                     Boolean                            doWrite,
  33.                                     ReadWriteCompletionProcPtr        callBack);
  34.